function bigNumberTransform(value) {
    const newValue = ['', '', '']
    let fr = 1000
    let num = 3
    let text1 = ''
    let fm = 1
    while (value / fr >= 1) {
        fr *= 10
        num += 1
        // console.log('数字', value / fr, 'num:', num)
    }
    if (num <= 4) { // 千
        newValue[0] = parseInt(value / 1000) + ''
        newValue[1] = '千'
    } else if (num <= 8) { // 万
        text1 = parseInt(num - 4) / 3 > 1 ? '千万' : '万'
        // tslint:disable-next-line:no-shadowed-variable
        fm = text1 === '万' ? 10000 : 10000000
        if (value % fm === 0) {
            newValue[0] = parseInt(value / fm) + ''
        } else {
            newValue[0] = parseFloat(value / fm).toFixed(0) + ''
        }
        newValue[1] = text1
    } else if (num <= 16) { // 亿
        text1 = (num - 8) / 3 > 1 ? '千亿' : '亿'
        text1 = (num - 8) / 4 > 1 ? '万亿' : text1
        text1 = (num - 8) / 7 > 1 ? '千万亿' : text1
        // tslint:disable-next-line:no-shadowed-variable
        fm = 1
        if (text1 === '亿') {
            fm = 100000000
        } else if (text1 === '千亿') {
            fm = 100000000000
        } else if (text1 === '万亿') {
            fm = 1000000000000
        } else if (text1 === '千万亿') {
            fm = 1000000000000000
        }
        if (value % fm === 0) {
            newValue[0] = parseInt(value / fm) + ''
        } else {
            newValue[0] = parseFloat(value / fm).toFixed(0) + ''
        }
        newValue[1] = text1
    }
    if (value < 1000) {
        newValue[0] = value + ''
        newValue[1] = ''
    }
    return newValue.join('')
}


<!--固定菜单-->
function fixedMenu() {
    //获取返回顶部标签距离顶部的距离
   /* let $go_top_tag = $(".fixed-menu-item[data-id='go-top']");
    let go_top_offset_top = $go_top_tag.offset().top;
    //先隐藏返回顶部
    //延时触发 - 节流
    let timer = 0;
    let end = 0;
    $go_top_tag.hide();
    $(window).scroll(function () {
        let scroll_top = $(window).scrollTop();
        end = go_top_offset_top + scroll_top;
        if (!timer) {
            timer = setTimeout(function () {
                scroll_top > 100 ? $go_top_tag.fadeIn() : $go_top_tag.fadeOut(); //滚动距离判断是否显示回到顶部
                timer = null;
            }, 100)
        }

    })*/

    $fixed_menu_item = $('.fixed-menu .fixed-menu-item');
    $fixed_menu_item.hover(function () {
        $item_box = $(".fixed-menu-item-box", $(this));
        let $that = $(this);
        $that.animate({
            "right": "0rem",
            "color": "red",
        }, 200);
        if ($item_box.length > 0) {
            $item_box.stop().fadeIn(1000).css('display', 'flex');
            $that.css('overflow', "visible")
        }

    }, function () {
        let $that = $(this);
        $that.animate({
            "right": "-6.2rem",
            "color": "#333333",
        }, 200)
        if ($item_box.length > 0) {
            $item_box.stop().fadeOut(1000, function () {
                $that.css('overflow', "hidden")
            });

        }
    })
    $fixed_menu_item.each(function (k, v) {
        let id = $(v).data('id');

        $(this).click(function () {
            switch (id) {
                case "go-top":
                    $('html,body').animate({
                        'scrollTop': '0'
                    }, 1000)
                    break;
                case "go-bottom":
                    $('html,body').animate({
                        scrollTop: $("footer").offset().top
                    }, 1000)
                    break;
                case "go-home":
                    location.href = '/'
                    break;

            }
        });


    })
}

fixedMenu();
